package com.yvon.maple.cloud.api.base.dto;

import com.yvon.maple.pojo.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;

import lombok.EqualsAndHashCode;

/**
 * 文件信息响应结果
 *
 * @author : Yvon
 * @since : 2021-08-30
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("文件信息响应参数")
public class FileInfoDTO extends BaseDTO implements Serializable {

    /**
     * 文件位置
     */
    @ApiModelProperty(name = "bucketName", value = "文件位置")
    private String bucketName;


    /**
     * 文件名
     */
    @ApiModelProperty(name = "fileName", value = "文件名")
    private String fileName;

    /**
     * 原文件名
     */
    @ApiModelProperty(name = "fileOriName", value = "原文件名")
    private String fileOriName;

    /**
     * 文件大小
     */
    @ApiModelProperty(name = "fileSize", value = "文件大小")
    private Long fileSize;

    /**
     * 文件类型
     */
    @ApiModelProperty(name = "contentType", value = "文件类型")
    private String contentType;

    /**
     * 存储方式
     */
    @ApiModelProperty(name = "storage", value = "存储方式")
    private String storage;


    @ApiModelProperty(name = "tempUrl", value = "临时访问路径")
    private String tempUrl;


    @ApiModelProperty(name = "expiry", value = "临时访问路径的时效(单位：小时)")
    private Integer expiry;
}
